package com.qf.smartplatform.mapper;

import com.qf.smartplatform.pojo.UserOnline;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

/**
 * projectName:day12_27_Test
 * author:guoLei
 * time:2022/1/4 11:25
 * description:
 */
public interface UserOnlineMapper {

    void addOnlineData(UserOnline userOnline);

    @Select("SELECT * FROM sys_user_online WHERE login_name =#{loginName}")
    UserOnline selectByLoginName(String loginName);

    @Delete("delete from sys_user_online WHERE login_name =#{loginName}")
    void deleteByLoginName(String loginName);
}
